/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package frmsystem;

import java.util.Observable;

import javax.swing.JOptionPane;

import frmsystem.util.SystemConstants;

/**
 *
 * @author bahria
 */
public class Organisation extends Party implements IOrganization{

	private int no_of_employees;

    public int getNo_of_employees() {
        return no_of_employees;
    }

    public void setNo_of_employees(int no_of_employees) {
        this.no_of_employees = no_of_employees;
    }

	@Override
	public void update(Observable arg0, Object arg1) {
		if (arg1 != null) {
			IAccount account = (IAccount)arg1;
			if (account.getLastTransaction().getEvent().toNotify(account))
				//TODO 
				
			JOptionPane.showMessageDialog(null, "Email is send");
		}
		
	}

	@Override
	public int getType() {
		return SystemConstants.PARTY_ORGANIZATION;
	}

	


}
